<?php
if( !$url ){
    $url = Yii::app()->request->getUrlReferrer();
    $url = $url ? $url :$this->createUrl('index');
}
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr align="center" valign="top">
        <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
            <div class="Block-Message">
                <div class="BlockBar"><?php echo $title;?></div>
                <div class="BlockBody">
                    <table cellspacing="1" cellpadding="4" class="tab" width="100">
                        <tr class="row align-center">
                            <td style="padding: 20px; font-size: 14px;">
                                <?php echo $message;?>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div class="align-center" style="float: none;">
                                    <?php echo CHtml::button('点击这里返回', array('class' => 'btns', 'url' => $url));?>
                                    </div></td>
                        </tr>
                    </table>
                </div>
            </div>
        </td>
    </tr>
</table>
<script>
    $('.btns').click(function(){
        location.href = $(this).attr('url');
    })
</script>